package com.zhongpengcheng.blog.enums;

import lombok.Getter;

/**
 * OSS文件保存路径枚举
 * @author ZhongPengCheng
 * @version 1.0
 * @since 2021-12-04 15:15:00
 */
@Getter
public enum FileTypeEnum {
    /**
     * 默认保存路径
     */
    DEFAULT("default/", 0, ""),
    IMAGE("image/", 1, ""),
    MARKDOWN("markdown/", 2, "md"),
    SKELETON("spine/skeleton/", 3, "skel"),
    ATLAS("spine/atlas/", 4, "atlas"),
    TEXTURE("spine/texture/", 5, "texture");
    private final String ossPrefix;
    private final int code;
    private final String suffix;

    FileTypeEnum(String ossPrefix, int code, String suffix) {
        this.ossPrefix = ossPrefix;
        this.code = code;
        this.suffix = suffix;
    }
}
